#ifndef __LCD_GUI_H__
#define __LCD_GUI_H__

#include "stm32f10x.h"
#include "usr_api.h"

u16 gui_color_chg(u32 rgb);
void gui_draw_line(u16 x0, u16 y0, u16 x1, u16 y1, u16 color);
void gui_draw_bline(u16 x1, u16 y1, u16 x2, u16 y2, u8 size, u16 color);
void gui_draw_vline(u16 x0, u16 y0, u16 len, u16 color);
void gui_draw_hline(u16 x0, u16 y0, u16 len, u16 color);
void gui_smooth_color(u32 srgb, u32 ergb, u16 *cbuf, u16 len);

void gui_draw_rectangle(u16 x0, u16 y0, u16 width, u16 height, u16 color);
void gui_fill_rectangle(u16 x0, u16 y0, u16 width, u16 height, u16 color);
long long gui_pow(u8 m, u8 n);
uint16_t rgb888_to_565(uint8_t r, uint8_t g, uint8_t b);

#endif




